package com.bbznb.util;

import com.bbznb.entity.Movie;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


public class PageData implements Serializable {
    private long total;      // 总记录数

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<Movie> getList() {
        return list;
    }

    public void setList(List<Movie> list) {
        this.list = list;
    }

    private int page;        // 当前页码
    private int size;        // 每页记录数
    private List<Movie> list;    // 数据列表
}